import { defineConfig } from 'tsup';

export default defineConfig({
  entry: ['src/index.ts'],
  format: ['cjs', 'esm', 'iife'],
  globalName: 'OcrLlm',
  outDir: 'dist',
  dts: true,
  minify: true,
  sourcemap: true,
  clean: true,
  target: 'es2020',
  external: [
    'stream',
    'fs',
    'path',
    'crypto',
    'buffer',
    'util',
    'events',
    'http',
    'https',
    'url'
  ]
});
